package jiachunlei.factory.lesson3;

/**
 * 抽象工厂模式
 * @author 朝花不迟暮
 * @version 1.0
 * @date 2020/12/1 19:33
 */
public class Client3
{
    public static void main(String[] args)
    {
        CarFactory factory = new LowCarFactory();

        Engine engine = factory.createEngine();
        engine.start();
        engine.run();

        Seat seat = factory.createSeat();
        seat.message();

        Tyre tyre = factory.createTyre();
        tyre.revolve();
    }
}
